import 'package:beautyflutter/componts/base_cared.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CardShare extends BaseCard {
//  @override
//  BaseCardState createState() {
//    return super.createState();
//  }
  @override
  _CardShareState createState() => _CardShareState();
}
class _CardShareState extends BaseCardState {
  @override
  bottomContent() {
    return Expanded(child: Container(
      margin: EdgeInsets.only(top: 20),
      decoration: BoxDecoration(color: Color(0xffff6f7f9)),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Expanded(child: Padding(padding: EdgeInsets.only(top: 20, left: 15, bottom: 20),
            child: Image.network(
              'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588242934471&di=d82c83e0164500504a8dfd1580add272&imgtype=0&src=http%3A%2F%2Fimglf6.nosdn0.126.net%2Fimg%2FQmtjWXAyTUI4Q2YrUlQ2RU41SEhuNXFXQkFpZnZqSGl6SDc0SnBobTNlT0NSelRnczZnQXVnPT0.png',
              fit: BoxFit.cover,
            ),
          )),
          Container(
            alignment: AlignmentDirectional.center,
            child: Padding(padding: EdgeInsets.only(bottom: 20), child: bottomTitle('2324232人 ·  参与活动')),
          )
        ],
      ),
    ));
  }
  @override
  topTitle(String title) {
    return super.topTitle('分享的联名卡');
  }
  Widget subTitle (String title) {
    return super.subTitle('分享给朋友最多可获取12天无限卡');
  }
  @override
  topTitle2() {
    return Container(child: Text('/第19期', style: TextStyle(fontSize: 10)),);
  }
}